#ifndef __RANK_MANAGER_H__
#define __RANK_MANAGER_H__
struct RankInfo
{
	Int32 char_id;
	Int32 race;
	Int32 gender;
	std::string char_name;
	Int32 level;
	Int32 data;
	RankInfo()
	{
		char_id = 0;
		race = 0;
		gender = 0;
		char_name = "";
		level = 0;
		data = 0;
	}
};
class RankManager:public singleton<RankManager>,public TimerHandler
{
public:
	RankManager();
	virtual ~RankManager();
	void GetRankFromDataServer();
	void onTimerUpdateRank(UInt32 nTimerId);
public:
	std::map<Int32,std::vector<RankInfo> > m_mapListRank;
	Int32 m_nRankVersion;
	UInt32 m_nTimerUpdateRank;
};
#endif
